import http from '@/common/http.js'

export default {
	// 首页正在进行中的行程
	itineraryxc: (data) => {
		return http.get({
			url: 'itinerary/xc',
			data,
			noAuth:true
		})
	},
	// 首页行程详情
	journeyDetail: (data) => {
		return http.get({
			url: 'itinerary/detail',
			data
		})
	},
	// 提交预约行程订单
	journeyCreateOrder: (data) => {
		return http.post({
			url: 'itinerary/createOrder',
			data
		})
	},
	
	// 首页动态列表
	homeDynamicList: (data) => {
		return http.get({
			url: 'dynamic/lists',
			data
		})
	},
	// 动态详情
	dynamicDetail: (data) => {
		return http.get({
			url: 'dynamic/detail',
			data
		})
	},
	// 动态详情
	dynamicCommentList: (data) => {
		return http.get({
			url: 'dynamic/commentList',
			data
		})
	},
	// 添加评论
	submitCommnent: (data) => {
		return http.post({
			url: 'dynamic/comment',
			data
		})
	},
	// 点赞/收藏/关注
	dynamicAction: (data) => {
		return http.post({
			url: 'dynamic/action',
			data
		})
	},
	// 获取评价标签以及标签数量
	itineraryTags: (data) => {
		return http.get({
			url: 'itinerary/tags',
			data
		})
	},
	// 获取评论列表
	itineraryCommentList: (data) => {
		return http.get({
			url: 'itinerary/commentList',
			data
		})
	},
	
	/* 
	 * 首页推荐 start
	 */
	// 猜你喜欢
	cnxhTj: (data) => {
		return http.get({
			url: 'cnxh/tj',
			data
		})
	},
	// 获取上下班拼车/旅游拼车/节假日拼车列表
	homeItinerary: (data) => {
		return http.get({
			url: 'homepage/itinerary',
			data
		})
	},
	// 租车列表
	homeCarRental: (data) => {
		return http.get({
			url: 'homepage/carRental',
			data
		})
	},
	// 包车列表
	homeChartered: (data) => {
		return http.get({
			url: 'homepage/chartered',
			data
		})
	},
	// 店铺列表
	homeShopList: (data) => {
		return http.get({
			url: 'homepage/shopList',
			data
		})
	},
	/* 
	 * 首页推荐 end
	 */
	// 租车收藏/取消收藏
	collectionCarRental: (data) => {
		return http.post({
			url: 'collection/carRental',
			data
		})
	},
	// 包车收藏/取消收藏
	collectionChartered: (data) => {
		return http.post({
			url: 'collection/chartered',
			data
		})
	},
	
	/*
	 * 首页关注 start
	 */
	
	// 线路列表
	homeFollowLine: (data) => {
		return http.get({
			url: 'homepage/followLine',
			data
		})
	},
	// 动态列表
	homeFollowDynamic: (data) => {
		return http.get({
			url: 'homepage/followDynamic',
			data
		})
	},
	// 租车列表
	homeFollowCarRental: (data) => {
		return http.get({
			url: 'homepage/followCarRental',
			data
		})
	},
	// 包车列表
	homeFollowChartered: (data) => {
		return http.get({
			url: 'homepage/followChartered',
			data
		})
	},
	// 行程列表
	homeFollowItinerary: (data) => {
		return http.get({
			url: 'homepage/followItinerary',
			data
		})
	},
	// 用户列表
	homeFollowUser: (data) => {
		return http.get({
			url: 'homepage/followUser',
			data
		})
	},
	// 常访问的人
	homePvUser: (data) => {
		return http.get({
			url: 'homepage/pvUser',
			data
		})
	},
	/*
	 * 首页关注 end
	 */
	// 获取推荐 动态
	getDt: (data) => {
		return http.get({
			url: 'dynamic/getDt',
			data
		})
	},
}
